﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Omes.Services;
using Page = Omes.Model.Page;

namespace Omes.Admin.ContentManage
{
    public partial class NaviPageUpdate : System.Web.UI.Page
    {
        /// <summary>
        /// 栏目
        /// </summary>
        public Omes.Model.Page BarInfo { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {

            int id = Convert.ToInt32(Request.QueryString["barid"]);
            id = 1;/////////////////////////////////////////////////////////////////////////测试/////////////////////////////////////////////////////////////
            Omes.Services.DbServer db = new DbServer();
            BarInfo = new Page();
            BarInfo = db.GetPage(id);
        }

        protected string GetPageTypeName(int id)
        {
            string result = string.Empty;
            DbServer db = new DbServer();
            Omes.Model.PageType pageType = db.GetPageType(id);
            result = pageType.PageTypeName;
            return result;
        }
    }
}